package chapter8.java;

import java.util.ArrayList;

/**
 * @Author juzipi
 * @Date 2021/5/21 16:10
 * @Info
 */
public class GCTest {

    public static void main(String[] args) {
        int i = 0;
        try {
            ArrayList<String> list = new ArrayList<>();
            String name = "你好你好";
            while (true){
                list.add(name);
                name = name + name;
                i++;
            }
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("第"+i+"次");
        }


    }


}
